package com.study.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

/**
 * @author tao
 * @create 2021-09-20 8:38
 * @Description
 */
@Data
public class UserData {
    // @ExcelProperty设置表头  @ColumnWidth()设置列宽 index表示从所以为几的列 index=0 表示为第一列
    @ExcelProperty(value = "用户编号",index = 0)
    private int uid;
    @ExcelProperty(value = "用户名称",index = 1)
    private String username;
}
